package com.cookpan001.mediators 
{
	import flash.display.DisplayObject;
	import flash.display.DisplayObjectContainer;
	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.mediator.Mediator;
	/**
	 * ...
	 * @author cookpan001
	 */
	public class AbstractMediator extends Mediator
	{
		public function AbstractMediator(name:String,view:Object) 
		{
			super(name,view);
		}
		
		protected function addLayer(key:String,mediator:Mediator):void
		{
			(this.viewComponent as DisplayObjectContainer).addChild(mediator.getViewComponent() as DisplayObject);
			facade.registerMediator(mediator);
		}
		
		override public function handleNotification(notification:INotification):void
		{
			super.handleNotification(notification);
		}
	}

}